package com.chaopei.entity;

/**
 * @Author Corday 天涯
 * @Date 2022/3/23 14:39
 * 创建实体类
 */
public class Emp {
    private  Integer eno;
    private  String ename;
    private  Double salary;
    private  Integer dno;
    public Emp(){}
    public Emp(Integer eno, String ename, Double salary, Integer dno) {
        this.eno = eno;
        this.ename = ename;
        this.salary = salary;
        this.dno = dno;
    }

    public Integer getEno() {
        return eno;
    }

    public void setEno(Integer eno) {
        this.eno = eno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public Integer getDno() {
        return dno;
    }

    public void setDno(Integer dno) {
        this.dno = dno;
    }
//    返回所有信息

    @Override
    public String toString() {
        return "姓名:"+this.ename+" 工资:"+this.salary;
    }
}
